<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
		<meta charset="utf-8">
		<title>淘天机站群系统管理后台</title>
		<!-- include header_meta -->
</head>

<body>
	<!-- include header -->
	<div class="cp-wrap {if $jnarrow}jnarrow{/if}">
		<div class="crumb"></div>
		<!--搜索框-->
		<div class="cp-table-top">
			<form action="?m=flink&a=index&yuming_id={$currentYumingId}" method="post">
				<input name="sitename" value="{$sitename}" type="text" placeholder="请输入您要搜索的友情链接">
				<input type="submit" value="搜索" class="btn" />
			</form>
		</div>
		<div class="cp-table-top">
			<input type="submit" class="btn" value="添加友情链接" onclick="window.location.href='?m=flink&a=add&yuming_id={$currentYumingId}' ">
		</div>
		<div class="cp-table">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<th width="50" align="left">ID</th>
						<th align="left">所属站点</th>
						<th align="left">友链名称</th>
						<th align="left">友情链接</th>
						<th align="left">状态</th>
						<th width="100" align="center">操作</th>
					</tr>
					<!-- foreach $list -->
					<tr>
						<td align="left">{$id}</td>
						<td align="left">{if isset($allyuming[$yuming_id])}{$allyuming[$yuming_id]['name']}{else}全局{/if}</td>
						<td align="left"> {$sitename}</td>
						<td align="left"> {$url}</td>
						<td align="left">
							{if $status=="1"} 启用 {elseif $status=="0"} 禁用 {/if}
						</td>
						<td align="center">
							<a href="?m=flink&a=edit&id={$id}&yuming_id={$currentYumingId}">修改</a>
							<a href="?m=flink&a=del&id={$id}&yuming_id={$currentYumingId}" onclick="return myconfirm('{$url}')">删除</a>
						</td>
					</tr>
					<!-- /foreach -->
				</tbody>
			</table>
		</div>
		<!-- if empty($list) -->
		<div class="noresult">暂时没有可显示数据</div>
		<!-- /if -->
		<div class="cp-pages">
			{$page}
		</div>
	</div>
	<!-- include footer -->
	<script type="text/javascript">
		function myconfirm(url) {
			return confirm('确定要删除吗？');
		}
	</script>
</body>

</html>
